﻿namespace DataLayer.DummaDTO
{
    public class PlayerDto
    {
        public PlayerDto(PlayerEntity entity)
        {
            this.Name = entity.Name;
            this.ID = entity.ID;
        }

        public static implicit operator PlayerDto(PlayerEntity entity)
        {
            return new PlayerDto(entity);
        }

        public string Name { get; set; }

        public int ID { get; set; }
    }
}
